

#ifndef SPHERE_H
#define SPHERE_H

#include"object.h"

class Sphere: public Object
{
  float wpos[4];
  float vpos[4];
  float radius;
  public:
  Sphere (float x, float y, float z, float r):
    radius(r)
  {
    wpos[0]=x;   vpos[0]=x; 
    wpos[1]=y;   vpos[1]=y; 
    wpos[2]=z;   vpos[2]=z; 
    wpos[3]=1.0; vpos[3]=1.0; 
  };
  bool Hit(Ray *r);
  void SetViewPos (float * mat);
};

#endif
